Fix building P2P code against old glib versions
authorMatthew Leeds <matthew.leeds@endlessm.com>
Tue, 29 May 2018 01:03:42 +0000 (18:03 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 30 May 2018 14:19:25 +0000 (14:19 +0000)
When building the OstreeBloom code against old versions of glib, we have
to have the libglnx headers included so that it defines
G_DEFINE_AUTOPTR_CLEANUP_FUNC and friends for us.

This is similarly true for test-repo-finder-mount.c which indirectly
includes ostree-autocleanups.h.

Closes: #1605
Approved by: cgwalters

src/libostree/ostree-bloom-private.h
tests/test-repo-finder-mount.c

index ed7ab35919ab562719bfd73b7fc733eb5473c3bc..1c5acb8fdc04bf2d17dc76de0ccb58033725d6c9 100644 (file)
@@ -28,6 +28,8 @@
 #include <glib.h>
 #include <glib-object.h>
 
+#include "libglnx.h"
+
 G_BEGIN_DECLS
 
 /**
index 948a3245155f04f70f202e580cd4029d39908691..55eb47fb25861556f4c95efefc4406f4e8638092 100644 (file)
@@ -27,6 +27,7 @@
 #include <gio/gio.h>
 #include <glib.h>
 #include <glib-object.h>
+#include <libglnx.h>
 #include <locale.h>
 
 #include "libostreetest.h"